import service from '../server'

export const getNoticeListApi = (data) => {
    return service.get('/api/v1/notice/list', data)
}

export const getMessageListApi = (data) => {
    return service.get('/api/v1/message/list', data)
}

// 标记已读
export const messageReadApi = (data) => {
    return service.post('/api/v1/message/read', data)
}

// 未读消息数量
export const getUnreadCountApi = (data) => {
    return service.get('/api/v1/message/unread/count', data)
}

// 消息删除
export const delMessageApi = (data) => {
    return service.delete('/api/v1/message/delete', data)
}

// 消息详情
export const getMessageDetailApi = (data) => {
    return service.get('/api/v1/message/detail', data)
}


